package com.atguigu.day11.homework.homework1;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/12 19:24
 * @注释
 */
public class Test {
    public static void main(String[] args) {
        Employee e = new Employee();
        e.setNum(1);
        e.setName("张三丰");
        e.setAge(50);
        e.setSalary(2000);
        System.out.println(e);
        Programmer p = new Programmer();
        p.setNum(2);
        p.setName("令狐冲");
        p.setAge(30);
        p.setSalary(5000);
        System.out.println(p);
        Designe d = new Designe();
        d.setNum(3);
        d.setName("任我行");
        d.setAge(40);
        d.setSalary(5000);
        System.out.println(d);

    }
}
